package com.openscorer;

import android.app.Activity;
import android.os.Bundle;
import android.widget.LinearLayout;
import android.widget.ScrollView;

public class NewGame extends Activity {
    /** Called when the activity is first created. */
    @Override
    public void onCreate(Bundle savedInstanceState) {
    	Game game = new Agricola();
    	Scorable variables = game.variables();
    	ScoreDisplay display = new ScoreDisplay(this, game, variables);
    	InterfaceBuilder ib = new InterfaceBuilder(this, variables, display);
    	LinearLayout layout = new LinearLayout(this);
    	layout.setOrientation(LinearLayout.VERTICAL);
    	layout.addView(ib.root());
    	layout.addView(display.View());
    	ScrollView scroller = new ScrollView(this);
    	scroller.addView(layout);
        setContentView(scroller);
        super.onCreate(savedInstanceState);
    }
}